package org.lingshi.common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.lingshi.common.entity.Permission;

import java.util.List;

public interface IPermissionService {
    void add(Permission permission);

    void update(Permission permission);

    void delete(Long id);

    Permission findById(Long pid);

    Page<Permission> search(int page,int size);

    List<Permission> findAll();
}
